<template>

  <div>
    <myNavbar title="红包"></myNavbar>
    <div class="saveCard_header bs" >
      <text class="saveCard_header_title">红包余额</text>
    </div>
    <div class="saveCard_balance_box">
      <div style="flex-direction: row;align-items: flex-end">
        <text class="saveCard_balance_Titlt">余额：</text>
        <text class="saveCard_balance">{{memberInfo.point/100}}个</text>
      </div>
      <text class="saveCard_balance_subTitle">总红包包含冻结红包:{{memberInfo.freezePoint/100}}个</text>
      <!-- <text class="saveCard_balance_subTitle">一个红包等于:{{memberInfo.freezePoint}}元</text> -->

    </div>
    <!-- <text class="saveCard_history">历史消费金额：0.00</text> -->

    <div style="padding-left:30px;padding-top:40px">
      <div class="saveCard_botton_top botton_Bg_Color" style="background-color: red" @click="toHistoty">
        <text class="saveCard_botton_top_title">提现</text>
      </div>
      <div class="saveCard_botton_bottom botton_bd_color" @click="toDistribution">
        <text class="saveCard_botton_bottom_title botton_bd_fz_color">明细</text>
      </div>
<!--      <div class="saveCard_botton_bottom botton_bd_color" @click="toRecharge">-->
<!--        <text class="saveCard_botton_bottom_title botton_bd_fz_color">充值</text>-->
<!--      </div>-->
    </div>
    <div class="rule-dio">
      <div class="rule-title">
        <div class="botton_Bg_Color" style="width:50px;height:4px;margin-right:20px;border-radius:30px;background-color: red;"></div>
        <text class="botton_bd_fz_color" style="font-size: 40px">红包规则</text>
        <div class="botton_Bg_Color" style="width:50px;height:4px;margin-left:20px;border-radius:30px;background-color: red;"></div>
      </div>
      <div class="rule-text"><text class="rule-dio-text">1、邀请好友购买【商城】产品获得红包奖励</text></div>
      <div class="rule-text"><text class="rule-dio-text">2、1红包等于1元 、全场通用 、不限额使用</text></div>
      <div class="rule-text"><text></text></div>
    </div>
  </div>

</template>
<script>
import myNavbar from "../../../components/myNavbar/myNavbar.vue";
import { list as memberInfo} from '@/api/shareCenter'

export default {
  data(){
    return{
      homeInfo: {},
      pageNum: 1,
      avatar: '',
      pageSize: 1000,
      isRuleShow: false,
      dialogShow: false,
      memberInfo: {point:"0",freezePoint:0},
      canvasType: false,
      canvasHeight: 400,
      canvasH: 0,
      qrcode: '',
      carvasQrCode:'',
      carvasLogo:'',
      oneButton: [{
        text: '确定'
      }],
      showOneButtonDialog: false,
    }
  },
  components: { myNavbar },
  mounted(){
    this.loadPromoter();
  },
  methods:{
    loadPromoter() {
      memberInfo().then(res => {
        this.memberInfo = res.data
        // this.setData({
        //   memberInfo: this.data.memberInfo
        // })
      })
    },
    toDistribution(){
      eeui.openPage({
            url: 'root://pages/member/distribution/distribution',
            statusBarType: 'immersion',
            statusBarStyle: false
          }, (result) => {}
      );
    },
    toRecharge(){
      eeui.openPage({
            url: 'root://pages/member/distribution/recharge',
            statusBarType: 'immersion',
            statusBarStyle: false
          }, (result) => {}
      );
    },

    toHistoty(){
      eeui.openPage({
            url: 'root://pages/member/distribution/transfer',
            statusBarType: 'immersion',
            statusBarStyle: false
          }, (result) => {}
      );
    },




  }


}
</script>
<style>
.botton_bd_color {
  border-style: solid;
  border-width: 1px;
  border-color:rgba(235, 89, 79, 1);
  /*border: 1px solid rgba(235, 89, 79, 1);*/
}
.botton_Bg_Color {
  background:rgba(237, 86, 75, 1);
}
.botton_bd_fz_color {
  color: rgba(235, 89, 79, 1);
}
page {
  background: rgb(248, 248, 248);
}
/*.bs{*/
/*  box-shadow: 0px 0px 30px #00000015;*/
/*}*/

.vein {
  position: absolute;
  width: 100%;
}

.rule-content {
  z-index: 200;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.5);
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.rule-dio {
  display: flex;
  padding: 40px;
  flex-direction: column;
  align-items: center;
  width: 690px;
  background-color: white;
  border-radius: 16px;
  margin-left: 30px;
  margin-top: 50px;
  box-sizing: border-box;
}
.rule-text{
  width: 600px;
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 26px;
  padding-top: 20px;
  color: rgba(0, 0, 0, 0.4);
}
.rule-dio-text{
  font-size: 26px;
  color: rgba(0, 0, 0, 0.4);
}

.yue{
  font-size: 24px;
  font-family: PingFangSC;
  font-weight: 400;
  color: #1a1a1e;
  opacity: 0.3;
}
.rule-click {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  height: 80px;
  width: 600px;
  /* background: linear-gradient(to right, #474747, #474747); */
  color: white;
  border-radius: 14px;
}

.rule-title {
  /* color: #b19e81; */
  width: 650px;
  /*border-bottom: 1px solid rgba(0, 0, 0, 0.1);*/
  border-bottom-color:rgba(0, 0, 0, 0.1);
  border-bottom-style: solid;
  border-bottom-width: 1px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding-bottom: 30px;
  font-size: 40px;
  margin-bottom: 20px;
}


.deposit {
  width: 750px;
  height: 600px;
  background-image: linear-gradient(to bottom, #c2c2c2, #f8f8f8);

}
.price-content{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.total-deposit {
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.total-deposit-head {
  width: 655px;
  padding-top: 30px;
  height: 105px;
  background: linear-gradient(to right, #f7dec5, #f0d0a7);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-left: 20px;
  padding-right: 20px;
}

.total-deposit-bottom {
  height: 120px;
  background-color: white;
  width: 710px;
  padding-top: 20px;
  padding-left: 20px;
  padding-right: 20px;
}

.aaaa {
  width: 750px;
  height: 91px;
}

.total-deposit-money {
  width: 695px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.botton-deposit {
  background-color: white;
  padding: 20px;
  width: 690px;
  box-sizing: border-box;
  margin-left: 30px;
  margin-top: 50px;
  border-radius: 12px;
}

.botton-deposit-title-content {
  height: 40px;
  width: 143px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.vertical {
  margin-top: 10px;
  height: 30px;
  width: 10px;
  background: linear-gradient(to bottom, #FFFFF0, #FFD39B);
}

.botton-deposit-title {
  font-size: 30px;
}

.botton-deposit-botton-content {
  display: flex;
  justify-content: space-around;

}

.title-button {
  margin-top: 10px;
  font-size: 24px;

}

.button-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* margin-top: 40px; */
  width: 200px;

}

.button {
  height: 100px;
  width: 100px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(to right, #f7dec5, #f0d0a7);
}

.title {
  margin-top: 10px;
  font-size: 28px;
  margin-left: 20px;
}

.detailed-content {
  padding-top: 20px;
  padding-right: 20px;
  margin-top: 30px;
  background-color: white;
  overflow-y: auto;
}

.detailed-title-content {
  width: 710px;
  padding-left: 20px;
  display: flex;
  flex-direction: row;
  margin-bottom: 40px;
  overflow: hidden;

}

.detailed-box-content {
  background-color: white;
  padding-right: 35px;
  padding-left: 35px;
  align-content: center;
  justify-content: space-between;
  height: 140px;
}

.detailed-title {
  margin-left: 20px;
  width: 400px;
  display: flex;
  flex-direction: column;

}
.aaaaa{
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 400px;
  max-height: 92px;
}
.detailed-name {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-content: space-between;
  font-size: 25px;
}

.detailed-date {
  margin-top: 10px;
  font-size: 25px;
  color: #808080;
}

.price {
  float: right;
  color: #FF6347;
  font-weight: 700;
  font-size: 27px;
}
.reducePrice{
  float: right;
  color: black;
  font-weight: 700;
  font-size: 27px;
}
.invitation-button {

  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background-color: #333333;
  color: #ffffde;
  font-size: 30px;
  border-radius: 20px;
}

.header {
  height: 146px;
  padding-right: 47px;
  padding-left: 30px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.header-info {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}


.rule {
  z-index: 100;
  width: 170px;
  height: 50px;
  border-radius: 20px;
  opacity: 0.8;
  display: flex;
  flex-direction: row;
  justify-content:space-evenly;
  align-items: center;
  font-size: 25px;
}

.rule-circular {
  height: 30px;
  width: 30px;
  border: 4px solid;
  color: black;
  border-radius: 50px;
  font-size: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.isMaskCanvas {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.cancelCanvasBotton {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  color: white;
  font-size: 40px;
  width: 440px;
  margin-bottom: 20px;
}


.poste_content {
  width: 440px;
  /* margin: auto; */
  overflow: hidden;
  /* margin-top: 200px; */
  /* background-color: #fff; */
  /* position: absolute;
  top: 0; */
  z-index: 9999;
  border-radius: 16px;
}
.canvasBotton {
  border: 2px solid white;
  padding: 10px 100px;
  border-radius: 100px;
  margin-top: 40px;
}
.canvasBottonTitle {
  font-size: 28px;
  color: white;
}



/*@import "../../../common.wxss";*/

.saveCard_header{
  width: 750px;
  height: 160px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding-left: 30px;
  box-sizing: border-box;
  background-color: white;
}
.saveCard_header_title{
  font-size: 50px;
  color: black;
}

.saveCard_balance_Titlt{
  font-size: 26px;
}

.saveCard_balance{
  font-size: 46px;
}

.saveCard_balance_subTitle{
  font-size: 22px;
  color: rgba(0, 0, 0, 0.4);
  display: block;
}

.saveCard_balance_box{
  width: 690px;
  margin-left: 30px;
  border-bottom-color: rgba(0, 0, 0, 0.2);
  border-bottom-width: 1px;
  border-bottom-style: solid;
  box-sizing: border-box;
  padding-bottom: 40px;
  margin-top: 50px;
}

.saveCard_history{
  font-size: 26px;
  padding-left: 30px;
  display: block;
  margin-top: 40px;
  color: rgba(0, 0, 0, 0.4);
}

.saveCard_botton_top{
  width: 150px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.saveCard_botton_top_title{
  font-size: 28px;
  color: white;
}

.saveCard_botton_bottom_title{
  font-size: 28px;
}

.saveCard_botton_bottom{
  width: 150px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border-width: 1px;
  border-style: solid;
  margin-top: 20px;
}
</style>
